﻿namespace WMS6.Services
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.ServiceModel;
    using WMS6.DataEntity;
    using WMS6.QueryEntity;

    [ServiceContract(Namespace="WMS6.Services")]
    public interface IEDIService
    {
        [ServiceKnownType(typeof(PubParasInfo)), OperationContract]
        string ASNImportByEDI_YITAI(List<string> data, string ownerID, string vendorID, PubParasInfo pubParasInfo);
        [ServiceKnownType(typeof(EdiLogQueryEntity)), OperationContract]
        DataSet GetEdiLogInfoByQueryEntity(EdiLogQueryEntity ediLogQuery);
        [ServiceKnownType(typeof(EdiLogQueryEntity)), OperationContract]
        DataSet GetEdiLogInfoByWhere(List<string> sqlWhere, EdiLogQueryEntity ediLogQuery);
        [OperationContract, ServiceKnownType(typeof(EdiLogInfo))]
        bool InsertEdiLogInfo(EdiLogInfo ediLogInfo);
        [ServiceKnownType(typeof(List<EdiLogInfo>)), ServiceKnownType(typeof(EdiLogInfo)), OperationContract]
        bool InsertEdiLogInfos(List<EdiLogInfo> ediLogInfos);
        [OperationContract]
        DataSet InvExportByEDI_SkyTrans(string ownerID, string dbLoginID);
        [OperationContract]
        string OrderImportByEDI_SkyTrans(List<string> data, string ownerID, string dbLoginID, char splitChar);
        [OperationContract, ServiceKnownType(typeof(PubParasInfo))]
        string OrderImportByEDI_YITAI(List<string> data, string ownerID, PubParasInfo pubParasInfo);
        [OperationContract]
        DataSet ShipmentExportByEDI_SkyTrans(string ownerID, string dbLoginID);
        [OperationContract]
        string SkuImportByEDI_SkyTrans(List<string> data, string ownerID, string dbLoginID, char splitChar);
        [OperationContract]
        int UpdateOrdersEdiFlag(List<string> orderIDs, string ownerID, string dbLoginID);
    }
}

